package vn.com.tiz.core;

import android.app.Activity;
import android.content.Context;
import android.util.DisplayMetrics;
import android.util.Log;

public class AppSetting {

	public static int SCREEN_WIDTH = 480;
	public static int SCREEN_HEIGHT = 800;
	
	private Activity activity;
	public AppSetting(Activity activity){
		
	}

	public static void config(Activity activity){		
		 
		DisplayMetrics dm = new DisplayMetrics();
		activity.getWindowManager().getDefaultDisplay().getMetrics(dm);
		
		SCREEN_WIDTH = dm.widthPixels;
        SCREEN_HEIGHT = dm.heightPixels;
        int density = dm.densityDpi;
        Log.d("TrungTT","Device:("+SCREEN_WIDTH+","+SCREEN_HEIGHT+") density:"+density);
        
	}
}
